package com.xy6.algo.search;

/**
 * 分链法实现哈希查找bean
 * 
 * @author zhang
 * @since 2017-08-24
 */
public class SeparateChainingHashST {

	public SeparateChainingHashST(int key, int value){
		this.key = key;
		this.value = value;
	}
	
	int key;
	
	int value;

	SeparateChainingHashST next;
	
	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public SeparateChainingHashST getNext() {
		return next;
	}

	public void setNext(SeparateChainingHashST next) {
		this.next = next;
	}

	@Override
	public String toString() {
		return "SeparateChainingHashST [key=" + key + ", value=" + value + ", next=" + next + "]";
	}
	
}
